﻿using BCDto.Trading.Purchase.GoodsPurchasePaidRecord;
using BCDto.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Trading.Purchase.GoodsPurchase
{
    /// <summary>
    /// 商品采购定金支付请求
    /// </summary>
    public class GoodsPurchaseDepositePaymentRequestDto
    {
        /// <summary>
        /// 商品采购单Id
        /// </summary>
        [Display(Name= "商品采购单Id")]
        [Required(ErrorMessage ="{0} 不允许为空")]
        public long GoodsPurchaseId { get; set; }
        /// <summary>
        /// 定金支付日期
        /// </summary>
        [Display(Name = "定金支付日期")]
        [Required(ErrorMessage = "{0} 不允许为空")]
        public DateTime DepositePaymentDate { get; set; }
        /// <summary>
        /// 已付定金金额
        /// </summary>
        [Display(Name = "已付定金金额")]
        [Required(ErrorMessage = "{0} 不允许为空")]
        public decimal PaidDepositeAmount { get; set; }
        /// <summary>
        /// 采购支付记录清单
        /// </summary>
        [Display(Name = "采购支付记录清单")]
        [Required(ErrorMessage = "{0} 不允许为空")]
        public List<GoodsPurchasePaidRecordRequestDto> PaidRecords { get; set; }
    }
}
